<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Login Successful</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f5f5f5;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }
        .container {
            background-color: #ffffff;
            border-radius: 10px;
            box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.1);
            padding: 40px;
            text-align: center;
            width: 300px;
        }
        h1 {
            color: #32CD32; /* 绿色 */
        }
        p {
            color: #666666;
            margin-top: 20px;
        }
        img.logo {
            width: 80px;
            margin-top: 20px;
        }
        button {
            background-color: #32CD32; /* 绿色 */
            color: #ffffff;
            border: none;
            border-radius: 5px;
            padding: 10px 20px;
            margin-top: 20px;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        button:hover {
            background-color: #228B22; /* 深绿色 */
        }
    </style>
</head>
<body>
    <div class="container">
        
        <h1>Successful</h1>
        <p><%= msg%></p>
        <p>Welcome back!</p>
    </div>

    <script>
        // 在页面加载后延时2秒跳转到仪表盘页面
        setTimeout(function() {
            window.location.href = "<%= url%>"; // 替换"/dashboard"为你的目标页面路径
        }, 1500);
    </script>
</body>
</html>
